package com.wangzg.module.admin.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangzg.module.admin.model.kuaidi.KuaiDi;
import com.wangzg.module.admin.vo.base.ResponseVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author wangzg
 */
public interface KuaiDiService extends IService<KuaiDi> {

    List<KuaiDi> findByCondition(IPage<KuaiDi> page, KuaiDi kuaiDi);
    // 查询
    List<KuaiDi> getList(String username, String phone, String kuaidiNo);


    /**
     * 新增
     * @param username
     * @param phone
     * @param kuaiDiNo
     * @param company
     * @return
     */
    ResponseVo add(String username, String phone, String kuaiDiNo, String company);

    /**
     * 删除
     * @param id
     * @return
     */
    ResponseVo removeById(Integer id);

    /**
     * 导入文件内容
     * @param multipartFile
     * @throws Exception
     */
    void importData(MultipartFile multipartFile) throws Exception;

    KuaiDi selectById(String id);

    void modify(KuaiDi kuaiDi);

    /**
     * 导出快递信息
     * @param ids
     */
    void exportData(List<String> ids);
}
